<?php
/**
 * 会员中心管理
 * @author cjli
 *
 */ 
class CustomizationAction extends HomeAction
{

	public function _initialize()
	{
		parent::_initialize();
	} 
	public function fabrics_kit(){
		global $user;global $language_id;
		$data = array(
    		'docTitle' => L('meta_title_Fabric'),
    		'docKeywords' => L('meta_keywords'),
    		'docDescription' => L('meta_description'),
    	);
		$this->assign($data);
		//展示商品名称，价格，说明
		$product_db = D('product');
		$product_db->join('product_items ON product_items.product_id = product.id');
		$productinfo = $product_db->where(array('model_id'=>19,'language_id'=>$language_id))->find();

		$this->assign('productinfo',$productinfo);
		//展示普通西服商品
		$where = array('catid'=>2127);
		$productList = ProductModel::get_product_list($where);
		$this->assign('productList', $productList);

		//高档西服商品名称，价格，说明
		$where = array('catid'=>2119);
		$premiumList = ProductModel::get_product_list($where);
		$this->assign('premiumList',$premiumList);
		
		//展示衬衫商品
		$where = array('catid'=>2062);
		$shirtsproductList = ProductModel::get_product_list($where);
		$where = array('is_sell' => 1);
		$List = ProductModel::get_product_list($where);
		$this->assign('shirtsproduct', $shirtsproductList);
		//显示单西商品
		$where = array('catid' => 2104);
		$blazersProductList = ProductModel::get_product_list($where);
		$this->assign('blazersProduct',$blazersProductList);
		//显示马夹商品
		$where = array('catid'=>2102);
		$vestsProductList = ProductModel::get_product_list($where);
		$this->assign('vestsProduct',$vestsProductList);
		//显示裤子商品
		$where = array('catid'=>2103);
		$pantsProductList = ProductModel::get_product_list($where);
		$this->assign('pantsProduct',$pantsProductList);
        //显示大衣商品
		$where = array('catid'=>2066);
		$coatsProductList = ProductModel::get_product_list($where);
		$this->assign('coatsProduct',$coatsProductList);

		//评论
		$commentlist = CommentModel::get_product_comment_list(505);
		$this->assign('commentlist', $commentlist);	

        //评论 和 星星
        $productComment = array(
            'count' => CommentModel::get_product_comment_count(505),
            'star'  => CommentModel::get_product_comment_star(505),
        	);
        $this->assign('productComment', $productComment);		

		$this->display('fabrics-kit');
	}
}
